<%@ page contentType="text/html; charset=UTF-8"%>
<%@ include file="/WEB-INF/jsp/common/init.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<jsp:include page="/WEB-INF/jsp/common/common.jsp" />
<jsp:include page="/WEB-INF/jsp_lib/tip.jsp" />
<script type="text/javascript">
	function query() {
		$("#form1").submit();
	}
	function myEdit(verify_id) {
		$("input[name=verify_id]").val(verify_id);
		var url = "${path}/ix/useapply/apply/verify/detail.htm";
		$("#form1").attr("action", url);
		$("#form1").submit();
	}
</script>
</head>
<body>
	<div>
		<form action="${path}/ix/useapply/apply/verify/list.htm" id="form1"
			method="post">
			<input name='verify_id' type="hidden" />
			<h2>
				<div>印章使用申请列表</div>
			</h2>
			<div class="query">
				<table width="100%" border="0" align="center" cellpadding="0"
					cellspacing="5">
					<tr>
						<td width="60" align="right"><strong>申请人：</strong></td>
						<td width="200" align="left"><input name="srh_user"
							type="text" /></td>
						<td width="80" align="right"><strong>用印事由：</strong></td>
						<td width="200" align="left"><input name="srh_reason"
							type="text" /></td>
						<td align="left"><a href="javascript:query();"> <img
								src="${path}/style_cp/img/query.jpg" name="Image4" width="85"
								height="27" border="0" id="Image4" />
						</a></td>
					</tr>
				</table>
			</div>
			<table width="100%" class="listlindex">
				<tr>
					<th>用印事由</th>
					<th>申请人</th>
					<th>附件</th>
					<th>申请时间</th>
					<th>操作</th>
				</tr>
				<c:if test="${fn:length(list)==0}">
					<tr>
						<td colspan="7"><div class="tip_div">暂无记录.</div></td>
					</tr>
				</c:if>
				<c:forEach items="${list}" var="v">
					<tr>
						<td>${v.reason}</td>
						<td>${v.uname}</td>
						<td><c:forEach items="${v.files}" var="m">
								<a href="${path }/download/${m._id}.htm" style="margin-right: 10px;"> <img
									src="${path}/style_cp/img/pot.jpg" width="85" height="27"
									border="0" /> ${m.name}
								</a>
							</c:forEach></td>
						<td><fmt:formatDate value="${v.created}"
								pattern="yyyy-MM-dd HH:mm:ss" /></td>
						<td>
							<a href="javascript:myEdit('${v.verify_id}');">【审批】</a> 
						</td>
					</tr>
				</c:forEach>
			</table>
			<div id="response"></div>
			<div class="options">
				<div class="quotes">
					<p>
					</p>
					<page:page page="${page}" />
				</div>
				<div class="clear"></div>
			</div>
		</form>
</body>
</html>